package com.yl.ydk.ui.activity

import android.view.View
import com.yl.ydk.R
import com.yl.ydk.base.BaseActivity
import kotlinx.android.synthetic.main.activity_treaty.*
import kotlinx.android.synthetic.main.roob_bar.*

class TreatyActivity : BaseActivity(), View.OnClickListener {


    override fun getLayoutId(): Int = R.layout.activity_treaty

    override fun attachView() {

    }

    override fun detachView() {

    }

    override fun initView() {
        tvTitle.text = "医达康平台服务协议"
        rlBack.setOnClickListener(this)
        webview.loadUrl("file:///android_asset/index.html")
    }

    override fun onClick(v: View?) {
        when (v?.id) {
            R.id.rlBack -> {
                finish()
            }
        }
    }



}